package com.qingrongby.shop.dto;

import com.qingrongby.shop.core.enumeration.LoginType;
import com.qingrongby.shop.validators.TokenPassword;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

/**
 * @CLASSNAME TokenDTO
 * @DESCRIPTION TODO
 * @AUTHOR hzp
 * @DATE 2020/7/6
 * @VERSION 1.0
 **/
@Getter
@Setter
public class TokenDTO {
    @NotBlank(message = "账号不能为空")
    private String account;
    @TokenPassword(min = 6,max = 12,message = "密码错误")
    private String pwd;
    private LoginType type;
}
